<h1>Milestones List</h1>

<table>
  <thead>
    <tr>
      <th>Milestoneid</th>
      <th>Name</th>
      <th>Createdate</th>
      <th>Startdate</th>
      <th>Enddate</th>
      <th>Projectid</th>
      <th>Estimatedcost</th>
      <th>Actualcost</th>
      <th>Createby</th>
      <th>Version</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($milestones as $milestone): ?>
    <tr>
      <td><a href="<?php echo url_for('milestone/show?milestoneid='.$milestone->getMilestoneid()) ?>"><?php echo $milestone->getMilestoneid() ?></a></td>
      <td><?php echo $milestone->getName() ?></td>
      <td><?php echo $milestone->getCreatedate() ?></td>
      <td><?php echo $milestone->getStartdate() ?></td>
      <td><?php echo $milestone->getEnddate() ?></td>
      <td><?php echo $milestone->getProjectid() ?></td>
      <td><?php echo $milestone->getEstimatedcost() ?></td>
      <td><?php echo $milestone->getActualcost() ?></td>
      <td><?php echo $milestone->getCreateby() ?></td>
      <td><?php echo $milestone->getVersion() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('milestone/new') ?>">New</a>
